from django.db import models


class Residencia(models.Model):

    direccion = models.CharField(max_length=30, null=True, blank=True)
    descripcion = models.TextField(max_length=300)
    telefono = models.CharField(max_length=15, null=True, blank=True)
    nombre_residencia = models.CharField(max_length=20)
    num_habitacion = models.CharField(max_length=5, null=True, blank=True)

    class Meta:
        verbose_name = "Residencia"
        verbose_name_plural = "Residencias"

    def __str__(self):
        return self.nombre_residencia
